package com.qingzhou.web.repository.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.fastjson2.JSONObject;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.handler.Fastjson2TypeHandler;
import com.qingzhou.common.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.Map;

@EqualsAndHashCode(callSuper = true)
@Data
@Table(value = "edc_datacheck_log")
public class DataCheckLogEntity extends BaseEntity {
    /**
     * 操作序号
     */
    @Excel(name = "操作序号")
    @Id
    private Long id;

    /**
     * 操作模块
     */
    @Excel(name = "操作模块")
    private String title;

    @Excel(name = "表名")
    private String tableName;

    /**
     * 请求方法
     */
    @Excel(name = "患者编号")
    private String patientCode;

    /**
     * 操作人员
     */
    @Excel(name = "操作人员")
    private String operName;

    /**
     * 请求参数
     */
    @Excel(name = "请求参数")
    private String operParam;

    /**
     * 变更内容
     */
    @Excel(name = "变更内容")
    @Column(typeHandler = Fastjson2TypeHandler.class)
    private JSONObject changedContent;

    public DataCheckLogEntity(){

    }
    
    public DataCheckLogEntity(String title, JSONObject changedContent,String patientCode) {
        this.title = title;
        this.changedContent = changedContent;
        this.patientCode=patientCode;
    }
}
